
import {
    request,
    IP
} from '../request'

export function getDataByPageAndSize(page = 1, size = 10) {
    console.log(page,size);
    return request({
        url: `/practicebase/praticeList`,
        params: {
            page,
            size
        },
    })
}

export function LikeSearch(name,page=1,size=10) {
    return request({
        url: `/practicebase/praticeFind`,
        params: { name,page,size },
        methods:"GET"
    })
}


export function Check(id,check) {
    return request({
        url: `/practicebase/praticeCheck`,
        params:{ id,check },
        methods:"GET"
    })
}

export function ToExcel( year ){
    return request({
        url: `/practicebase/proOut`,
        params:{ year },
        methods:"GET",
        responseType: 'arraybuffer'
    })
}


